/*
	Copyright (c) 2007, ANYwebcam.com Pty Ltd. All rights reserved.

	The software in this package is published under the terms of the BSD style 
	license, a copy of which has been included with this distribution in the 
	license.txt file.
*/
package com.anywebcam.di.util
{
	import com.anywebcam.di.*;
	
	import flash.events.IEventDispatcher;
	
	/**
	 * Parses whatever text or binary the ComponentDefinitionsLoader retrieves and populates the DIContainer as appropriate
	 */
	public interface ComponentDefinitionsParser extends IEventDispatcher
	{
		/**
		 * Must dispatch either a Event.COMPLETE, or an IOErrorEvent.IO_ERROR as the processing may not finish in one block
		 */
		function parse( container:DIContainer, data:* ):void;
	}
}